

import java.io.IOException;
import java.io.ObjectOutputStream;
import java.net.Socket;

public class Sender {
	private ObjectOutputStream oos;

	public Sender(Socket s) {
		try {
			oos = new ObjectOutputStream(s.getOutputStream());
		} catch (IOException e) {
			e.printStackTrace();
		}
	}



	public void send(Message m) {
		try {
			oos.writeObject(m);
			oos.flush();

		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
